package com.hechi.demo.mapper;

import com.hechi.demo.dto.OrdersDto;
import com.hechi.demo.dto.OrdersListRequestDto;
import com.hechi.demo.entity.Orders;

import java.util.List;

public interface OrdersMapper {
    int deleteByPrimaryKey(Integer orderId);

    int insert(Orders record);

    int insertSelective(Orders record);

    Orders selectByPrimaryKey(Integer orderId);

    int updateByPrimaryKeySelective(Orders record);

    int updateByPrimaryKey(Orders record);

    //查询：组合查询，多条件查询，动态sql查询
    List<OrdersDto> selectByCondition(OrdersListRequestDto ordersListRequestDto);

    OrdersDto selectByOrderId(Integer orderId);
}